package com.beiye.drivertransport.adapter;

import android.content.Context;
import android.widget.TextView;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.beiye.drivertransport.R;
import com.beiye.drivertransport.bean.StrationCityBean;

import java.util.List;

/**
 * Created by ky on 2018/5/24.
 */

public class StrationCityApt extends CommonAdapter<StrationCityBean.DataBean.NextListBean> {
    private final List<StrationCityBean.DataBean.NextListBean> mList;
    private Context context;
    // 标记用户当前选择
    private int index = -1;


    public StrationCityApt(Context context, List<StrationCityBean.DataBean.NextListBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
        this.context = context;
        this.mList = mList;
    }

    @Override
    public void convert(ViewHolder holder, StrationCityBean.DataBean.NextListBean item, final int position) {
        TextView tv_company = holder.getView(R.id.tv_company);
        String NextAdName = mList.get(position).getNextAdName();
        tv_company.setText(NextAdName);

    }




}